def textCreator(name,msg):
    full_path= '/book/noob/01/'
    file_path=full_path+name+'.txt'
    file = open(file_path,'w')
    file.write(msg);
    file.close()
    print('done')

def textFilter(word,sensitve='fuck',change_word='love'):
    return word.replace(sensitve,change_word)

str='I fuck you'

str=textFilter(str)
textCreator('test',str)

